package com.ssm.gbq.service;

import com.ssm.gbq.model.Complaint;

import java.util.List;

public interface ComplaintService {
    /**
     * 条件分页获取全部投诉信息
     * @return
     * @throws Exception
     */
    List<Complaint> getALLComplaintTable(Complaint complaint, int currentPage, int pageSize) throws Exception;
    /**
     * 条件分页查询获取条数
     * @param complaint
     * @param currentPage
     * @param pageSize
     * @return
     * @throws Exception
     */
    int getALLComplaintTableCount(Complaint complaint) throws Exception;
    /**
     * 添加a
     * @param complaint
     * @return
     */
    int addComplaint(Complaint complaint);

    /**
     * 修改
     * @param complaint
     * @return
     */
    int updateComplaint(Complaint complaint);

    /**
     * 删除
     * @param id
     * @return
     */
    int delComplaint(Integer id);
    /**
     * 根据id查询
     * @param id
     * @return
     */
    Complaint showComplaintById(Integer id);
}
